<template>
  <el-row>
    <el-col :span="10">
      <!-- 搜索部分 -->
      <div class="input-suffix">
        <span>区域名称：</span>
        <el-select v-model="value" placeholder="请选择">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          />
        </el-select>
        <span style="margin-left:20px">布局名称：</span>
        <el-select v-model="value" placeholder="请选择">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          />
        </el-select>
        <el-button type="primary" icon="el-icon-search" @click="doSearch">{{ $t('search') }}</el-button>
      </div>
    </el-col>
  </el-row>
</template>
<script>
export default {
  name: 'Monitor',
  data() {
    return {
      value: '',
      options: [
        {
          value: '选项1',
          label: '黄金糕'
        },
        {
          value: '选项2',
          label: '双皮奶'
        }
      ]
    }
  },
  methods: {
    doSearch() {
      this.$eventBus.$emit('open', true)
    }
  }
}
</script>
